package com.cskaoyan.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * 做user相关的请求的处理
 * 窄化请求
 * @author stone
 * @date 2022/12/22 17:26
 */
@Controller
@RequestMapping("user")
public class UserController {

    //@RequestMapping("user/query")
    @RequestMapping("query")
    @ResponseBody
    public String query() {
        return "user/query";
    }
    //@RequestMapping("user/create")
    @RequestMapping("create")
    @ResponseBody
    public String create() {
        return "user/create";
    }
    //@RequestMapping("user/remove")
    @RequestMapping("remove")
    @ResponseBody
    public String remove() {
        return "user/remove";
    }
    //@RequestMapping("user/modify")
    @RequestMapping("modify")
    @ResponseBody
    public String modify() {
        return "user/modify";
    }
}
